package com.sam.im.heiqun.entities;

import com.google.gson.annotations.Expose;
import com.orm.SugarRecord;

import java.io.Serializable;

/**
 * Created by wangguodong on 2017/2/6.
 */
public class GroupFriendEntivity extends SugarRecord implements Serializable{
    @Expose
    private int type =0;//预留字段，暂时用不到
    @Expose//belong_group_id
    private long belongGroupId ;
    @Expose
    private long uid;
    @Expose
    private String birthday;
    @Expose
    private String city;
    @Expose
    private String createTime;
    @Expose
    private String detail;
    @Expose
    private String district;
    @Expose
    private String headUrl;
    @Expose
    private String isBlack;
    @Expose
    private String isOnline;
    @Expose
    private String mail;
    @Expose
    private String mobile;
    @Expose
    private String name;
    @Expose
    private String nickName;
    @Expose
    private String province;
    @Expose
    private String receiveTip;//服务器返回的值：1-有消息提示；0-没有消息提示
    @Expose
    private String remark;
    @Expose
    private String markName;
    @Expose
    private String sex;
    @Expose
    private String sign;
    @Expose
    private String status;
    @Expose
    private String needAuth;
    @Expose
    private String newNotification;
    @Expose
    private String pwd;
    @Expose
    private String searchMobile;
    @Expose
    private String realName;

    @Expose
    private String payInfo;
    @Expose
    private Long currentid;//对应的用户id

    @Expose
    private String role = "3";//角色标识； 1群主 2管理员  3普通群成员
    @Expose
    private String silence = "0";
    @Expose
    private String expire;//群收费过期时间
    @Expose
    private String joinWay;//进群方式

    @Expose
    private String fee ;//进群价格
    @Expose
    private String days ;//进群天数
    @Expose
    private String groupExpire ;//群成员的和群所在时间
    @Expose
    private String level = "0";//群组等级

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getGroupExpire() {
        return groupExpire;
    }

    public void setGroupExpire(String groupExpire) {
        this.groupExpire = groupExpire;
    }

    public void setDays(String days) {
        this.days = days;
    }

    public void setFee(String fee) {
        this.fee = fee;
    }

    public String getDays() {
        return days;
    }

    public String getFee() {

        return fee;
    }

    public String getJoinWay() {
        return joinWay;
    }

    public void setJoinWay(String joinWay) {
        this.joinWay = joinWay;
    }

    public int getType() {
        return type;
    }
    public GroupFriendEntivity() {

    }
    public GroupFriendEntivity(ImFriendEntivity imFriendEntivity) {
        setMobile(imFriendEntivity.getMobile());
        setName(imFriendEntivity.getName());
        setReceiveTip(imFriendEntivity.getReceiveTip());
//        setId(imFriendEntivity.getId());
        setUid(imFriendEntivity.getId());
        setMarkName(imFriendEntivity.getMarkName());

        setSign(imFriendEntivity.getSign());
        setBirthday(imFriendEntivity.getBirthday());
        setCity(imFriendEntivity.getCity());
        setCreateTime(imFriendEntivity.getCreateTime());
        setCurrentid(imFriendEntivity.getCurrentid());

        setDetail(imFriendEntivity.getDetail());
        setDistrict(imFriendEntivity.getDistrict());
        setHeadUrl(imFriendEntivity.getHeadUrl());
        setIsBlack(imFriendEntivity.getIsBlack());
        setIsOnline(imFriendEntivity.getIsOnline());

        setMail(imFriendEntivity.getMail());
        setNeedAuth(imFriendEntivity.getNeedAuth());
        setNewNotification(imFriendEntivity.getNewNotification());
        setPayInfo(imFriendEntivity.getPayInfo());
        setProvince(imFriendEntivity.getProvince());

        setPwd(imFriendEntivity.getPwd());
        setRealName(imFriendEntivity.getRealName());
        setSearchMobile(imFriendEntivity.getSearchMobile());
        setSex(imFriendEntivity.getSex());
        setStatus(imFriendEntivity.getStatus());
        setNickName(imFriendEntivity.getNickName());
        setRole(imFriendEntivity.getRole());
        setSilence(imFriendEntivity.getSilence());
        setExpire(imFriendEntivity.getExpire());
        setFee(imFriendEntivity.getFee());
        setDays(imFriendEntivity.getDays());
        setGroupExpire(imFriendEntivity.getGroupExpire());
        setLevel(imFriendEntivity.getLevel());
        setJoinWay(imFriendEntivity.getJoinWay());
    }


    public ImFriendEntivity getImFriend(){
        ImFriendEntivity m = new ImFriendEntivity();

        m.setRole(getRole());//群组身份 1群主 2管理员  3普通群成员

        m.setName(getName());
        m.setStatus(getStatus());
        m.setSign(getSign());
        m.setSex(getSex());
        m.setReceiveTip(getReceiveTip());
        m.setUserId(getUid());
        m.setBirthday(getBirthday());
        m.setCity(getCity());
        m.setCreateTime(getCreateTime());
        m.setCurrentid(getCurrentid());
        m.setDetail(getDetail());

        m.setDistrict(getDistrict());
        m.setHeadUrl(getHeadUrl());
        m.setIsBlack(getIsBlack());
        m.setIsOnline(getIsOnline());
        m.setMail(getMail());

        m.setMarkName(getMarkName());
        m.setMobile(getMobile());
        m.setNeedAuth(getNeedAuth());
        m.setNewNotification(getNewNotification());
        m.setNickName(getNickName());

        m.setPayInfo(getPayInfo());
        m.setProvince(getProvince());
        m.setPwd(getPwd());
        m.setRealName(getRealName());
        m.setSearchMobile(getSearchMobile());
        if (0!=uid)m.setId(getUid());
        m.setSilence(getSilence());
        m.setExpire(getExpire());
        m.setExpire(getFee());
        m.setExpire(getDays());
        m.setGroupExpire(getGroupExpire());
        m.setLevel(getLevel());
        m.setJoinWay(getJoinWay());
        return m;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getExpire() {
        return expire;
    }

    public void setExpire(String expire) {
        this.expire = expire;
    }

    public String getSilence() {
        return silence;
    }

    public void setSilence(String silence) {
        this.silence = silence;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getBelongGroupId() {
        return belongGroupId;
    }

    public void setBelongGroupId(long belongGroupId) {
        this.belongGroupId = belongGroupId;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getIsBlack() {
        return isBlack;
    }

    public void setIsBlack(String isBlack) {
        this.isBlack = isBlack;
    }

    public String getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(String isOnline) {
        this.isOnline = isOnline;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getReceiveTip() {
        return receiveTip;
    }

    public void setReceiveTip(String receiveTip) {
        this.receiveTip = receiveTip;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getMarkName() {
        return markName;
    }

    public void setMarkName(String markName) {
        this.markName = markName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getNeedAuth() {
        return needAuth;
    }

    public void setNeedAuth(String needAuth) {
        this.needAuth = needAuth;
    }

    public String getNewNotification() {
        return newNotification;
    }

    public void setNewNotification(String newNotification) {
        this.newNotification = newNotification;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getSearchMobile() {
        return searchMobile;
    }

    public void setSearchMobile(String searchMobile) {
        this.searchMobile = searchMobile;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPayInfo() {
        return payInfo;
    }

    public void setPayInfo(String payInfo) {
        this.payInfo = payInfo;
    }

    public Long getCurrentid() {
        return currentid;
    }

    public void setCurrentid(Long currentid) {
        this.currentid = currentid;
    }


}
